package com.summer.mall.entity;

import java.io.Serializable;

public class ChatMsg implements Serializable {
    private Integer stateNumber;
    private String stateMsg;
    private Integer targetId;
    private String sessionId;

    public ChatMsg(Integer stateNumber, String stateMsg, Integer targetId, String sessionId) {
        this.stateNumber = stateNumber;
        this.stateMsg = stateMsg;
        this.targetId = targetId;
        this.sessionId = sessionId;
    }

    public ChatMsg(Integer stateNumber, String stateMsg, Integer targetId) {
        this.stateNumber = stateNumber;
        this.stateMsg = stateMsg;
        this.targetId = targetId;
        this.sessionId = null;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public Integer getStateNumber() {
        return stateNumber;
    }

    public void setStateNumber(Integer stateNumber) {
        this.stateNumber = stateNumber;
    }

    public String getStateMsg() {
        return stateMsg;
    }

    public void setStateMsg(String stateMsg) {
        this.stateMsg = stateMsg;
    }

    public Integer getTargetId() {
        return targetId;
    }

    public void setTargetId(Integer targetId) {
        this.targetId = targetId;
    }

    @Override
    public String toString() {
        return "ChatMsg{" +
                "stateNumber=" + stateNumber +
                ", stateMsg='" + stateMsg + '\'' +
                ", targetId=" + targetId +
                '}';
    }
}
